package com.ITArmy.controller.Test;

import com.ITArmy.controller.base.BaseController;
import com.ITArmy.util.QiNiu;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.multipart.MultipartFile;



@Controller
@RequestMapping("/qiniu")
@Api(value = "七牛云接口", tags = "测试接口...")
public class Test extends BaseController {
    @ApiOperation(value = "进入editor编辑器的页面", httpMethod = "POST")
    @ResponseBody
    @RequestMapping("/upload")
    public String testEditor(MultipartFile multipartFile) {
        QiNiu qiNiu = new QiNiu();
        qiNiu.GetUrl(multipartFile);
        return "OK";
    }
}
